import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import imageCompressPlugin from './vite-plugin-image-compress';
import analyzeBundleSizePlugin from './vite-plugin-analyze-bundle-size.js';
export default defineConfig({
  plugins: [
    vue(),
    imageCompressPlugin(),
    analyzeBundleSizePlugin({ threshold: 50 * 1024 }), // 设置阈值为 50KB
  ],
});
